//package com.authine.cloudpivot.common.config;
//
//import com.authine.mvp.lib.mybatis.config.AbstractMybatisConfig;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.ibatis.session.SqlSessionFactory;
//import org.mybatis.spring.annotation.MapperScan;
//import org.springframework.context.annotation.Configuration;
//
//import javax.sql.DataSource;
//
///**
// * @author carter
// * create_date  2020/6/2 18:18
// * description     mybtis增强配置
// */
//@Configuration
//@Slf4j
//@MapperScan(basePackages = {"com.authine.cloudpivot.common.extension.customized.mapper"})
//public class DataSourceConfig extends AbstractMybatisConfig {
//
//    @Override
//    protected String getBasePackage() {
//		return "com.authine.cloudpivot.common.extension.customized.mapper";
//    }
//
//    @Override
//    public SqlSessionFactory sqlSessionFactoryBean(DataSource dataSource) throws Exception {
//        SqlSessionFactory sqlSessionFactory = super.sqlSessionFactoryBean(dataSource);
//
//        sqlSessionFactory.getConfiguration().setMapUnderscoreToCamelCase(true);
//
//        log.info("配置驼峰转换属性");
//        return sqlSessionFactory;
//    }
//
//}
